<!--
 * @Author: 雷宇航
 * @Date: 2021-08-23 16:45:50
 * @LastEditTime: 2021-08-23 17:25:59
 * @LastEditors: 雷宇航
 * @Description: 
 * @FilePath: \icm\icm-vue\src\views\hifar\common\PrintModal.vue
-->
<template>
  <j-modal
    :title="'打印'+title"
    :width="900"
    :visible="visible"
    :maskClosable="false"
    switchFullscreen
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel">
    <iframe :src="src()" width="100%" height="700px" scrolling="no"></iframe>
  </j-modal>
</template>

<script>
  export default {
    name: 'print-modal',
    data() {
      return {
        id:"",
        title:'',
        visible: false,
        disableSubmit:true
      }
    },
    methods:{
      src(){
        return `${window._CONFIG['domianURL']}/jmreport/view/112797627bd4c55fa114cbc49f62da9d?id=${this.id}`
      },
      open () {
        this.visible=true
      },
      handleCancel () {
        this.visible = false;
      }
    }
  }
</script>

<style scoped>
</style>